package behavior.State;

/**
 * Created by LYJ on 2016/10/21.
 * 房间空闲状态
 */
public class FreeTimeState implements State{
    private Room hotelManagement;

    public FreeTimeState(Room hotelManagement)
    {
        this.hotelManagement = hotelManagement;
    }

    @Override
    public void bookRoom() {
        System.out.println("您已经预定成功了！");
        this.hotelManagement.setState(this.hotelManagement.getBookedState());
    }

    @Override
    public void unsubscribeRoom() {


    }

    @Override
    public void checkInRoom() {
        System.out.println("您已经入住了！");
        this.hotelManagement.setState(this.hotelManagement.getCheckInState());
    }

    @Override
    public void checkOutRoom() {

    }
}
